ofiles := $(patsubst %.cpp,%.o,$(wildcard *.cpp))


all: $(ofiles)
	g++ -g -Wall -shared -lsfml-system -o se_system.so $(ofiles)
	ar rs se_system.a *.o

%.o : %.cpp *.hpp
	g++ -g -Wall -fpic -c $<

clean:
	-rm -f *.o *.so
